package com.example.mapper;

import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * com.example.mapper.UserMapper
 *
 * @author ZRS
 * @version V1.0
 * @since 2025/10/30 20:02
 */
@Mapper
public interface UserMapper {
    List<User> findAll();

    User findById(Integer id);

    int insert(User user);

    int update(User user);

    int delete(Integer id);
}

